<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html">
 
    <h:body>
    	<h3>JSF 2.0 Hello World Example</h3>
 		<h:messages />
    	<h:form>
	    	<h:selectOneMenu value="#{b1.sym}" label="Stock symbol" require="true"
	    	  requiredMessage="Input is missing!" >
				<f:selectItems value="#{b2.symbols}" />
			</h:selectOneMenu>
	    	<h:inputText value="#{b1.quoteDate}" require="true" label="Quote date" >
	    	 	<f:convertDateTime dataStyle="short" />
	    	</h:inputText>
	    	<h:commandButton action="ok" value="getStockValue"> </h:commandButton>
    	</h:form>
 
    </h:body>
</html>